org.springframework.ejb.support

Class AbstractStatefulSessionBean

    • Constructor Detail

      • AbstractStatefulSessionBean

        public AbstractStatefulSessionBean()
    • Method Detail

      • loadBeanFactory

        protected void loadBeanFactory()
                                throws BeansException
        Load a Spring BeanFactory namespace. Exposed for subclasses to load a BeanFactory in their ejbCreate() methods. Those callers would normally want to catch BeansException and rethrow it as javax.ejb.CreateException. Unless the BeanFactory is known to be serializable, this method must also be called from ejbActivate(), to reload a context removed via a call to unloadBeanFactory() from the ejbPassivate() implementation.
        Overrides:
        loadBeanFactory in class AbstractEnterpriseBean
        Throws:
        BeansException
        See Also:
        AbstractStatelessSessionBean.ejbCreate()
      • unloadBeanFactory

        protected void unloadBeanFactory()
                                  throws FatalBeanException
        Unload the Spring BeanFactory instance. The default ejbRemove() method invokes this method, but subclasses which override ejbRemove() must invoke this method themselves.

        Unless the BeanFactory is known to be serializable, this method must also be called from ejbPassivate(), with a corresponding call to loadBeanFactory() from ejbActivate().

        Overrides:
        unloadBeanFactory in class AbstractEnterpriseBean
        Throws:
        FatalBeanException